<template>
  <div>
    <router-view></router-view>
  </div>
</template>
<script>
import { getChannels } from '@/api/news.js'
export default {
  name: 'App',
  async created() {
    try {
      let res = await getChannels()
      console.log('成功', res)
    } catch (err) {
      console.log('获取失败', err)
    }
  },
}
</script>

<style scoped lang="less"></style>
